//
//  goodsTableViewCell.m
//  11213
//
//  Created by student on 16/3/7.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "goodsTableViewCell.h"

@implementation goodsTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setGoods:(goodsmodel *)goods
{
    _goods = goods;
    NSLog(@"%@",goods.images);
    self.gdimage.image = [UIImage imageNamed:goods.images];
    self.gdproductname.text = goods.productName;
    self.gdprice.text = [NSString stringWithFormat:@"¥%@",goods.price];
    self.gddescriptio.text = goods.descriptio;
    self.gdsalecount.text = [NSString stringWithFormat:@"共有%@商家在售",goods.saleCount];
    self.gdforsale.text = [NSString stringWithFormat:@"月销量：%@",goods.forsale];
    
}

@end
